package com.itheima.service.impl;

import com.itheima.mapper.ScoreMapper;
import com.itheima.pojo.Score;
import com.itheima.pojo.Scores;
import com.itheima.service.ScoreServoce;
import com.itheima.utils.SqlSessionFactory;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class ScoreServiceImpl implements ScoreServoce {
    SqlSession sqlSession = SqlSessionFactory.getSqlSession();
    ScoreMapper scoreMapper = sqlSession.getMapper(ScoreMapper.class);
    @Override
    public void addScore(Scores scores) {

    }

    @Override
    public void updateScore(Scores scores) {

    }

    @Override
    public void delectSocre(int id) {

    }

    @Override
    public Scores findScoreById(int id) {
        return null;
    }

    @Override
    public List<Score> findScoreByUid(int uid) {
        return null;
    }

    @Override
    public List<Score> findScoreBySid(int sid) {
        return null;
    }

    @Override
    public List<Score> findScoreByCid(int cid) {
        return null;
    }

    @Override
    public List<Score> findScoreAll() {
        List<Score> scores = scoreMapper.findAll();
        return scores;
    }


}
